package com.estate.mapper;

import java.util.List;

import com.estate.pojo.City;

public interface CityMapper {

    int deleteByPrimaryKey(Integer cityId);

    int insert(City record);

    int insertSelective(City record);

    City selectByPrimaryKey(Integer cityId);

    int updateByPrimaryKeySelective(City record);

    int updateByPrimaryKey(City record);
    
    /**
     * 查询所有城市
     * @return
     * @throws Exception
     */
    List<City> allCity() throws Exception;
    
    /**
     * 查询有项目的城市
     * @return
     */
    List<String> selectCityNameByDetail() throws Exception;
}